<?php


 
// username and password sent from form 
$name=$_POST['name']; 
$type=$_POST['type']; 
$des=$_POST['des']; 

//echo $_POST['myusername']."<br>";
// To protect MySQL injection (more detail about MySQL injection)

//$myusername = mysql_real_escape_string($myusername);
//$mypassword = mysql_real_escape_string($mypassword);
$sql="INSERT INTO `backoffice`.`organization` (`name` ,`type` ,`des`)VALUES ('$name', '$type', '$des')";

//$sql="SELECT * FROM `user`";
mysql_query($sql);



// Register $myusername, $mypassword and redirect to file "login_success.php"
//
//print_r($_SESSION);
header("location:../index.php?page=manage_organizations");

?>